<?php
/**
 * xushuhui
 * 2017/8/21
 * 9:48
 */

namespace app\lib\validate;

/**
 * 修改密码
 * Class PasswordValidate
 * @package app\lib\validate
 * @author xushuhui
 * @version 1.0
 */
class PasswordValidate extends BaseValidate
{
	protected $rule =[
		['oldPassword','require|length:6,20|alphaDash','旧密码必须输入|旧密码应为6-20个字符|旧密码不能是汉字'],
		['newPassword','require|length:6,20|alphaDash','新密码必须输入|新密码应为6-20个字符|新密码不能是汉字'],
		['rePassword','require|confirm:newPassword','重复密码必须输入|两次密码不相同'],
	];

}